#pragma once
#include "Protocol.hpp"

class Task
{
  public:
    Task()
    {}
    Task(int sock)
        : _sock(sock)
    {}
    void ProcessOn()
    {
        _handler(_sock);
    }
    ~Task()
    {}
  private:
    int _sock;
    CallBack _handler;  //函数指针
};